﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace BanSupport
{

    public class LiveObject : BaseObject
    {
        //当前血量
        public Fix64 curHp;
        //最大血量
        public Fix64 maxHp;
        //攻击力
        public Fix64 attack;
        //攻击间隔
        public Fix64 attackGapTime;
        //攻击冷却
        public Fix64 attackColdTime;
        //属于哪个团队的
        public int groupId;


        public LiveObject(string name, string assetName, Fix64 maxHp, Fix64 attack, Fix64 attackGapTime, int groupId)
            : base(name, assetName)
        {
            this.curHp = maxHp;
            this.maxHp = maxHp;
            this.attack = attack;
            this.attackGapTime = attackGapTime;
            this.attackColdTime = Fix64.Zero;
            this.groupId = groupId;
        }

        public override void Update()
        {
            base.Update();
        }

    }

}
